{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
	<div class="content-tabs">
		<ol class="breadcrumb">
			<li>
				<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
			</li>
			<li><strong>提现记录</strong></li>
		</ol>
	</div>
	<div class="ibox-content">
		<ul class="nav nav-tabs">
			<li id="li-bar-busi">
				<a href="{:url('cashrec')}">商家提现记录</a>
			</li>
			<li id="li-bar-member">
				<a href="{:url('memcashrec')}">会员提现记录</a>
			</li>
		</ul>
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('memcashrec')}">
			<div class="row">
				<span class="bspan">会员名称</span><input type="text" id="name" name="name" value="{$name}" placeholder="" class="bank" />
				<select class="bank" name="type" id="type">
					<option value="0">请选择提现类型</option>
		            <option value="1">D+0</option>
		            <option value="2">T+1</option>
		       	</select>
				<span class="bspan">提现时间</span><input type="text" id='start_time' name='start_time' onclick='WdatePicker()' placeholder="开始时间" class="bank" />
				<input type="text" id='end_time' name='end_time' onclick='WdatePicker()' placeholder="结束时间" class="bank" />
				<span class="" style="border-radius:0px;border:1px;"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
				<a href="#" onclick="check()" class="btn btn-primary btn-outline">导出信息</a></span>
			</div>
		</form>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<table class="table table-bordered table-hover">
					<thead>
						<tr class="long-tr">
							<th class="text-center">会员名称</th>
							<th class="text-center">手机号</th>
							<th class="text-center">提现金额</th>
							<th class="text-center">实际到帐金额</th>
							<th class="text-center">手续费</th>
							<th class="text-center">提现类型</th>
							<th class="text-center">提现账户</th>
							<th class="text-center">开户行支行</th>
							<th class="text-center">户名</th>
							<th class="text-center">提现状态</th>
							<th class="text-center">提现时间</th>
							<th class="text-center">处理时间</th>	
						</tr>
					</thead>
					<tbody id="list" class="text-center">
						{volist name="list" id='ad'}
						<tr>
							<td>{$ad.nick_name}</td>
							<td>{$ad.mobile}</td>
							<td>{$ad.balance}</td>
							<td>{$ad.actual_balance}</td>
							<td>{$ad.counter_fee}</td>
							<td>
								{if $ad.type == 1}
								D+0
								{elseif $ad.type == 2}
								T+1
								{/if}
							</td>
							<td>{$ad.card_no}</td>
							<td>{$ad.bank_account}</td>
							<td>{$ad.bank_username}</td>
							<td>
								{if $ad.cash_status == 1}
								处理中
								{elseif $ad.cash_status == 2}
								提现成功
								{else}
								提现失败
								{/if}
							</td>
							<td>{$ad.createtime}</td>
							<td>{$ad.dealtime}</td>
						</tr>
						{/volist}
					</tbody>
				</table>
				<div style="text-align: right;">
					{$list->render()}
				</div>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
	$("#li-bar-member").addClass("active");
	var surl="adminmall/paylog/cashrec";
	setMenu(surl);
	function check(){
		var name = $('#name').val();
		var type = $('#type').val();
		var start_time = $('#start_time').val();
		var end_time = $('#end_time').val();
		window.location.href = "/adminmall/paylog/memcashdc.html?name="+ name+"&type="+ type+"&start_time="+ start_time+"&end_time="+ end_time;
	}
</script>
<style>

</style>
{/block}